package com.example.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("subject_file")
public class SubjectFile {
    @TableId
    private Integer id;
    private String fileName;
    private String createUser;
    private Integer parentId;
    private String nodeId;
    private Integer level;
    public void initSubjectFile(SubjectFile subjectFile){
        this.fileName=subjectFile.getFileName();
        this.createUser=subjectFile.getCreateUser();
        this.parentId=subjectFile.getParentId();
        this.nodeId=subjectFile.getNodeId();
        this.level=subjectFile.getLevel();
    }
}
